<div id="popin_add_comment" class="popin_fancybox">
    <div id="inline1" class="fancybox_content">
        <?php if( isset($this->errorLogged) && ($this->errorLogged == 1) ) : ?>
            <p>Error : the user is not defined or unavailable.</p>
        <?php else : ?>
            <h1>Add a comment</h1>
            <div class="form">
                <?php if( isset($this->success) && ($this->success == 1) ) : ?>
                    <p>The new comment is now on your page.</p>
                <?php else : ?>
                    <form id="add_comment_form" method="post" action="<?php echo $this->url(array('controller' => 'user','action' =>'addcomment'),'default',true) ?>" onsubmit="submitPopInAjaxForm('popin_add_comment','add_comment_form'); return false;">
                        <?php echo $this->form; ?>
                    </form>
                <?php endif; ?>
            </div>
        <?php endif; ?>
    </div>
</div>